import System
from System.Windows.Forms import *
from System.ComponentModel import *
from System.Drawing import *
from clr import *
import FlexminAPI

class PythonTestModule: # namespace
    
	class PyForm(System.Windows.Forms.Form):
		"""type(_button1) == System.Windows.Forms.Button"""
		__slots__ = ['_button1']
		
		slave
		#def __init__(self):
			#self.InitializeComponent()
			
		def __init__(slave):
			self.InitializeComponent()
			self.slave = slave
	    
		@accepts(Self(), bool)
		@returns(None)
		def Dispose(self, disposing):
			super(type(self), self).Dispose(disposing)
	    
		@returns(None)
		def InitializeComponent(self):
			self._button1 = System.Windows.Forms.Button()
			self.SuspendLayout()
			# 
			# button1
			# 
			self._button1.Location = System.Drawing.Point(102, 113)
			self._button1.Name = 'button1'
			self._button1.Size = System.Drawing.Size(75, 23)
			self._button1.TabIndex = 0
			self._button1.Text = 'button1'
			self._button1.UseVisualStyleBackColor = True
			self._button1.Click += self._button1_Click
			# 
			# PyForm
			# 
			self.ClientSize = System.Drawing.Size(292, 273)
			self.Controls.Add(self._button1)
			self.Name = 'PyForm'
			self.ResumeLayout(False)
	    
		@accepts(Self(), System.Object, System.EventArgs)
		@returns(None)
		def _button1_Click(self, sender, e):
			slave.GetMessage()
            
        
    

